<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "asr_call_classify".
 *
 * @property int $call_classify_id 自增id
 * @property int $call_number 拨打次数
 * @property int $call_time 通话时长 秒
 * @property int $customer_classify 客户类型 0 拒绝用户 1 中性用户 2 潜力用户
 * @property int $created_at 拨打时间
 * @property int $updated_at 更新时间
 * @property int $customer_id 拨打的用户id
 */
class AsrCallClassify extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'asr_call_classify';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['call_time', 'created_at', 'updated_at', 'customer_id'], 'integer'],
            [['created_at', 'updated_at', 'customer_id'], 'required'],
            [['call_number', 'customer_classify'], 'string', 'max' => 3],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'call_classify_id' => 'Call Classify ID',
            'call_number' => 'Call Number',
            'call_time' => 'Call Time',
            'customer_classify' => 'Customer Classify',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'customer_id' => 'Customer ID',
        ];
    }
}
